From: Wim Taymans Date: Wed, 11 Jun 2014 20:18:39 +0000 (+0200) Subject: shell-recorder: send EOS to the pipeline X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~2400 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=17f481f6feb1ca5c50cbfbfa30f1c8c2d9c1e380;p=gnome-shell.git shell-recorder: send EOS to the pipeline Send EOS to the complete pipeline instead of only to our own source. When there are multiple sources in the pipeline (for example when we also record audio), the pipeline will send the EOS to all sources in order to shut down the complete pipeline. --- diff --git a/src/shell-recorder.c b/src/shell-recorder.c index f0b3a6424..494ae52b5 100644 --- a/src/shell-recorder.c +++ b/src/shell-recorder.c @@ -1541,8 +1541,8 @@ recorder_close_pipeline (ShellRecorder *recorder) * is written. The bus watch for the pipeline will get it and do * final cleanup */ - shell_recorder_src_close (SHELL_RECORDER_SRC (recorder->current_pipeline->src)); - + gst_element_send_event (recorder->current_pipeline->pipeline, + gst_event_new_eos()); recorder->current_pipeline = NULL; } }